README for Replication Data for: Laboratories of Democratic Backsliding


Before running the code, be sure to create a folder with the name "output"


CODE FILES: The following files replicate the analyses in the paper

1. Measurement Code.R: This code merges datasets and runs measurement models. The code creates "democracy_measures_paper.csv," which is also provided in the Dataverse folder for convenience.

2. Analysis Code.R: This code merges additional data and runs hypothesis tests using the democracy measures


DATA FILES: The following files are datasets used in analysis. They will be loaded and merged by the code files above.

registration_drive_restrictions.csv
sdr_data.csv
shor mccarty 1993-2016 state aggregate data May 2018 release (Updated July 2018).dta
state_demographic_data.csv
state_hispanic_pop_data.csv
state_house_analysis.RData
state_poverty_by_race.csv
upward_mobility_data.dta
variables_list.csv
1980-2014 November General Election - Turnout Rates.csv
black_white_segregation2000_2009.csv
caughey_warshaw_summary.dta
congress_analysis.RData
cost_of_voting_index.csv
data_onepartystates.dta
epi_indicators-all_years.csv
female_governors_klarner_extended.csv
grumbach_2018.dta
health_ineq_online_table_5.csv
IFJ_asset_forfeiture_ratings_cleaned.csv
kelly_witko_2012_ajps_data.csv
latino_white_segregation2000_2009.csv
party_control_post2014.csv
preds_6_14_18.RData
preregistration_laws.csv




The following files include the specifications and estimates used in figures in the paper and appendix:

democracy_full_factanal.csv
DID_package_simulations.csv
figure_1_specs.csv
figure_5a_specs.csv
figure_5b_specs.csv
mcmc_paper_loadings_lib.csv
mcmc_paper_loadings_novoterid.csv
synth_2.csv
synth_3.csv
synth_4.csv
synth_novoterid.csv
synth_placebo.csv

